/**
 * Generate time : 2011-10-13 2:21:55
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cf.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCFPenalty
 * 
 */
public class ZMCFPenalty extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdSendnoteDepartmentId = " "; /* 开单部门ID */
	private String fdSendnoteDepartment = " "; /* 开单部门 */
	private String fdSendnoteDate = " "; /* 开单日期 */
	private String fdClassify = " "; /* 罚款分类 */
	private String fdStatus = " "; /* 状态 */
	private Double fdPenalty = new Double(0); /* 罚款金额 */
	private String fdDepartmentId = " "; /* 责任单位ID */
	private String fdDepartmentName = " "; /* 责任部门 */
	private String fdPeopleId = " "; /* 责任人ID */
	private String fdPeopleName = " "; /* 责任人 */
	private String fdReason = " "; /* 罚款原因 */
	private String fdIsSubmit = " "; /* 已交罚款 */
	private String fdSendnotePersonId = " "; /* 开单人ID */
	private String fdSendnotePerson = " "; /* 开单人 */
	private String fdRemark = " "; /* 备注 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendnoteDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("开单部门ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendnoteDepartment");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("开单部门");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendnoteDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("开单日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdClassify");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("罚款分类");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStatus");
		eiColumn.setFieldLength(6);
		eiColumn.setDescName("状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPenalty");
		eiColumn.setType("N");
		eiColumn.setScaleLength(0);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("罚款金额");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("责任单位ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartmentName");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("责任部门");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPeopleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("责任人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPeopleName");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("责任人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReason");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("罚款原因");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdIsSubmit");
		eiColumn.setFieldLength(5);
		eiColumn.setDescName("已交罚款");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendnotePersonId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("开单人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSendnotePerson");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("开单人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemark");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCFPenalty() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdSendnoteDepartmentId - 开单部门ID
	 * 
	 * @return the fdSendnoteDepartmentId
	 */
	public String getFdSendnoteDepartmentId() {
		return this.fdSendnoteDepartmentId;
	}

	/**
	 * set the fdSendnoteDepartmentId - 开单部门ID
	 */
	public void setFdSendnoteDepartmentId(String fdSendnoteDepartmentId) {
		this.fdSendnoteDepartmentId = fdSendnoteDepartmentId;
	}

	/**
	 * get the fdSendnoteDepartment - 开单部门
	 * 
	 * @return the fdSendnoteDepartment
	 */
	public String getFdSendnoteDepartment() {
		return this.fdSendnoteDepartment;
	}

	/**
	 * set the fdSendnoteDepartment - 开单部门
	 */
	public void setFdSendnoteDepartment(String fdSendnoteDepartment) {
		this.fdSendnoteDepartment = fdSendnoteDepartment;
	}

	/**
	 * get the fdSendnoteDate - 开单日期
	 * 
	 * @return the fdSendnoteDate
	 */
	public String getFdSendnoteDate() {
		return this.fdSendnoteDate;
	}

	/**
	 * set the fdSendnoteDate - 开单日期
	 */
	public void setFdSendnoteDate(String fdSendnoteDate) {
		this.fdSendnoteDate = fdSendnoteDate;
	}

	/**
	 * get the fdClassify - 罚款分类
	 * 
	 * @return the fdClassify
	 */
	public String getFdClassify() {
		return this.fdClassify;
	}

	/**
	 * set the fdClassify - 罚款分类
	 */
	public void setFdClassify(String fdClassify) {
		this.fdClassify = fdClassify;
	}

	/**
	 * get the fdStatus - 状态
	 * 
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}

	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}

	/**
	 * get the fdPenalty - 罚款金额
	 * 
	 * @return the fdPenalty
	 */
	public Double getFdPenalty() {
		return this.fdPenalty;
	}

	/**
	 * set the fdPenalty - 罚款金额
	 */
	public void setFdPenalty(Double fdPenalty) {
		this.fdPenalty = fdPenalty;
	}

	/**
	 * get the fdDepartmentId - 责任单位ID
	 * 
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}

	/**
	 * set the fdDepartmentId - 责任单位ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}

	/**
	 * get the fdDepartmentName - 责任部门
	 * 
	 * @return the fdDepartmentName
	 */
	public String getFdDepartmentName() {
		return this.fdDepartmentName;
	}

	/**
	 * set the fdDepartmentName - 责任部门
	 */
	public void setFdDepartmentName(String fdDepartmentName) {
		this.fdDepartmentName = fdDepartmentName;
	}

	/**
	 * get the fdPeopleId - 责任人ID
	 * 
	 * @return the fdPeopleId
	 */
	public String getFdPeopleId() {
		return this.fdPeopleId;
	}

	/**
	 * set the fdPeopleId - 责任人ID
	 */
	public void setFdPeopleId(String fdPeopleId) {
		this.fdPeopleId = fdPeopleId;
	}

	/**
	 * get the fdPeopleName - 责任人
	 * 
	 * @return the fdPeopleName
	 */
	public String getFdPeopleName() {
		return this.fdPeopleName;
	}

	/**
	 * set the fdPeopleName - 责任人
	 */
	public void setFdPeopleName(String fdPeopleName) {
		this.fdPeopleName = fdPeopleName;
	}

	/**
	 * get the fdReason - 罚款原因
	 * 
	 * @return the fdReason
	 */
	public String getFdReason() {
		return this.fdReason;
	}

	/**
	 * set the fdReason - 罚款原因
	 */
	public void setFdReason(String fdReason) {
		this.fdReason = fdReason;
	}

	/**
	 * get the fdIsSubmit - 已交罚款
	 * 
	 * @return the fdIsSubmit
	 */
	public String getFdIsSubmit() {
		return this.fdIsSubmit;
	}

	/**
	 * set the fdIsSubmit - 已交罚款
	 */
	public void setFdIsSubmit(String fdIsSubmit) {
		this.fdIsSubmit = fdIsSubmit;
	}

	/**
	 * get the fdSendnotePersonId - 开单人ID
	 * 
	 * @return the fdSendnotePersonId
	 */
	public String getFdSendnotePersonId() {
		return this.fdSendnotePersonId;
	}

	/**
	 * set the fdSendnotePersonId - 开单人ID
	 */
	public void setFdSendnotePersonId(String fdSendnotePersonId) {
		this.fdSendnotePersonId = fdSendnotePersonId;
	}

	/**
	 * get the fdSendnotePerson - 开单人
	 * 
	 * @return the fdSendnotePerson
	 */
	public String getFdSendnotePerson() {
		return this.fdSendnotePerson;
	}

	/**
	 * set the fdSendnotePerson - 开单人
	 */
	public void setFdSendnotePerson(String fdSendnotePerson) {
		this.fdSendnotePerson = fdSendnotePerson;
	}

	/**
	 * get the fdRemark - 备注
	 * 
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}

	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdSendnoteDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendnoteDepartmentId")), fdSendnoteDepartmentId));
		setFdSendnoteDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendnoteDepartment")), fdSendnoteDepartment));
		setFdSendnoteDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendnoteDate")), fdSendnoteDate));
		setFdClassify(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdClassify")), fdClassify));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdPenalty(NumberUtils.toDouble(StringUtils.toString(map.get("fdPenalty")), fdPenalty));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdDepartmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentName")), fdDepartmentName));
		setFdPeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPeopleId")), fdPeopleId));
		setFdPeopleName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPeopleName")), fdPeopleName));
		setFdReason(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReason")), fdReason));
		setFdIsSubmit(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsSubmit")), fdIsSubmit));
		setFdSendnotePersonId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendnotePersonId")), fdSendnotePersonId));
		setFdSendnotePerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendnotePerson")), fdSendnotePerson));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdSendnoteDepartmentId", StringUtils.toString(fdSendnoteDepartmentId, eiMetadata.getMeta("fdSendnoteDepartmentId")));
		map.put("fdSendnoteDepartment", StringUtils.toString(fdSendnoteDepartment, eiMetadata.getMeta("fdSendnoteDepartment")));
		map.put("fdSendnoteDate", StringUtils.toString(fdSendnoteDate, eiMetadata.getMeta("fdSendnoteDate")));
		map.put("fdClassify", StringUtils.toString(fdClassify, eiMetadata.getMeta("fdClassify")));
		map.put("fdStatus", StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));
		map.put("fdPenalty", StringUtils.toString(fdPenalty, eiMetadata.getMeta("fdPenalty")));
		map.put("fdDepartmentId", StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));
		map.put("fdDepartmentName", StringUtils.toString(fdDepartmentName, eiMetadata.getMeta("fdDepartmentName")));
		map.put("fdPeopleId", StringUtils.toString(fdPeopleId, eiMetadata.getMeta("fdPeopleId")));
		map.put("fdPeopleName", StringUtils.toString(fdPeopleName, eiMetadata.getMeta("fdPeopleName")));
		map.put("fdReason", StringUtils.toString(fdReason, eiMetadata.getMeta("fdReason")));
		map.put("fdIsSubmit", StringUtils.toString(fdIsSubmit, eiMetadata.getMeta("fdIsSubmit")));
		map.put("fdSendnotePersonId", StringUtils.toString(fdSendnotePersonId, eiMetadata.getMeta("fdSendnotePersonId")));
		map.put("fdSendnotePerson", StringUtils.toString(fdSendnotePerson, eiMetadata.getMeta("fdSendnotePerson")));
		map.put("fdRemark", StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));

		return map;

	}
}